import type { AppRouteModule } from '/@/router/types';

import { getParentLayout, LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const dataAudit: AppRouteModule = {
  path: '/audit',
  name: 'dataAudit',
  component: LAYOUT,
  redirect: '/audit/auditlist',
  meta: {
    orderNo: 800,
    icon: 'tabler:chart-dots',
    title: t('routes.demo.dataAudit.root'),
    roles: ['Admin', 'FireControl', 'Police', 'Housing'],
    hideMenu: true
  },
  children: [
    {
      path: 'auditlist',
      name: 'auditlist',
      meta: {
        title: t('routes.demo.dataAudit.auditlist'),
      },
      component: () => import('/@/views/audit/FetchTable.vue'),
    },
  ],
};

export default dataAudit;
